Apparatus for calibrating a charge pump and method therefor

ABSTRACT

A signal calibration apparatus of a charge pump minimizes a current from the charge pump. The signal calibration apparatus includes a detecting circuit, a current adjusting circuit, and a calibrating circuit, wherein the detecting circuit is coupled to the charge pump for outputting a detecting signal according to the direction and magnitude of the current, the current adjusting circuit is coupled to the detecting circuit for outputting a calibrating signal according to the polarity and magnitude of the slew rate for the detection signal; and the calibrating circuit, which consists of a first calibration current source and a second calibration current source, is respectively coupled to the charge pump and the current adjusting circuit for adjusting the first current and the second current by outputting a first calibrating current and second calibrating current to the charge pump.

[0001] This application incorporates by reference Taiwan application Serial No. 090126330, filed on Oct. 24, 2001.

BACKGROUND OF THE INVENTION

[0002] 1. Field of the Invention

[0003] The invention relates in general to a signal calibration apparatus, and more particularly to a signal calibration apparatus for use in a charge pump.

[0004] 2. Description of the Related Art

[0005] Phase locked loop (PLL) is a circuit for controlling the frequency and the phase of its output signal according to a criterion. Nowadays, the achievement of a high-speed, low-noise PLL is the major subject to be devoted to.

[0006]FIG. 1 illustrates the block diagram of a PLL 100 according to a traditional method. The PLL 100 includes a phase/frequency detector (PFD) 102, a loop filter (LP) 104, a voltage controlled oscillator (VCO) 106, and a frequency divider (FD) The PFD 102 receives an input frequency f_(IF) and a reference frequency f_(ref), and then outputs a signal S1 to the LP 104 according to the phase difference between the input frequency f_(IF) and the reference frequency f_(ref). The LP 104 filters out the noise and then outputs a signal S2 to the VCO 106. The VCO 106 outputs an output frequency f_(OF), which is also the output signal of the PLL 100 and is fed back to the FD 108. The FD 108 outputs the reference frequency f_(ref), which is equal to the output frequency f_(OF) divided by a positive integer N, wherein the positive integer N is determined by a control signal f_(CO).

[0007] After a settle time from the starting of the PLL 100, the PLL 100 goes to a lock state, wherein the reference frequency f_(ref) is equal to the input frequency f_(IF), and the output frequency f_(OF) is equal to the positive multiple of the input frequency f_(IF).

[0008] Please refer to FIG. 2; it shows a charge pump 200, which is the post-stage of the PFD 102. The charge pump 200 has a current source I_(UP) and a current source I_(DN) for respectively receiving a rising signal f_(up) and a descending signal f_(dn) from the pre-stage, wherein the rising signal f_(up) and the descending signal f_(dn) are determined according to the phase difference between the reference frequency f_(ref) and the input frequency f_(IF). The current source I_(UP) outputs current i_(up) according to the rising signal f_(up) while the current source I_(DN) outputs current i_(dn) according to the descending signal f_(dn). Hence, the current i_(up) and current i_(dn) relate to the phase difference between the reference frequency f_(ref) and the input frequency f_(IF). The charge pump 200 outputs a current I_(O), which is the difference between the current i_(up) and current i_(dn) and is proportional to the phase difference between the reference frequency f_(ref) and the input frequency f_(IF).

[0009] Ideally, the characteristics of the current sources I_(UP) and I_(DN) are identical. When they receive the same signals, the current i_(up) outputted from the power source I_(UP) is equal to the current i_(dn) outputted from the current source I_(DN), and thus the current I_(O) is zero. However, such the circuit elements of the same kind as the two current sources, in reality, have slight variations in physical characteristic. Thus, the current i_(up) outputted from the current source I_(UP) will not be equal to the current i_(dn) outputted from the current source I_(DN) when the current source I_(UP) and the current source I_(DN) respectively receive the rising signal f_(up) and the descending signal f_(dn) in the same magnitude. In this case, the output current I_(O) will not be zero even if the reference frequency f_(ref) and the input frequency f_(IF) are in phase, thus degrading the performance of the PLL in phase-locking. Therefore, it is desirable to have a charge pump with higher precision to overcome these limitations to the PLL.

SUMMARY OF THE INVENTION

[0010] It is therefore an object of the invention to provide a signal calibration apparatus for use in a charge pump so as to improve the performance of the PLL. The current outputted from the charge pump is calibrated by compensating for the difference between two current sources.

[0011] In accordance with the object of the invention, a signal calibration apparatus of the charge pump is disclosed. The charge pump includes a first switch, a second switch, a first current source, and a second current source, wherein the first current source is coupled to the first switch at a first node and the second current source is coupling to the second switch at a second node, and the first switch is coupled to the second switch at a third node. The charge pump outputs a current through the third node, and the direction and magnitude of the current are determined by a first current and a second current, wherein the first current is outputted from the first current source and passes through the first switch and the second current is outputted from the second current source and passes through the second switch.

[0012] The signal calibration apparatus includes a detecting circuit, a current adjusting circuit, and a calibrating circuit, wherein the detecting circuit is coupled to the charge pump at the third node for outputting a detecting signal according to the direction and magnitude of the current, the current adjusting circuit is coupled to the detecting circuit for outputting a calibrating signal according to the polarity and magnitude of the slew rate for the detecting signal; and the calibrating circuit is respectively coupled to the charge pump and the current adjusting circuit for adjusting the first current and the second current by outputting a first calibrating current and a second calibrating current to the charge pump.

BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Other objects, features, and advantages of the invention will become apparent from the following detailed description of the preferred but non-limiting embodiments. The description is made with reference to the accompanying drawings.

[0014]FIG. 1 shows the block diagram of a PLL (phase lock loop) according to a traditional method.

[0015]FIG. 2 shows a charge pump.

[0016]FIG. 3 shows the circuit of the calibration apparatus for the charge pump according to the present invention.

[0017]FIG. 4 shows the flow chart of the calibration method for the charge pump according to the present invention.

DESCRIPTION OF THE PREFERRED EMBODIMENT

[0018] The principle of the invention is to provide the two current sources of a charge pump with respective calibration current sources. In addition, the output current produced from the charge pump is minimized by adjusting the magnitude of the calibrating currents outputted from the calibration current sources. In this way, reduction in the output signal's errors resulted from the characteristic variations of the two current sources of the charge pump can be achieved, which improves the performance of a PLL using the charge pump in phase locking.

[0019]FIG. 3 illustrates the circuit of the signal calibration apparatus for the charge pump according to the method of the present invention. The calibration apparatus 300 has a charge pump 302, a detecting circuit 304, an current adjusting circuit 306, and a calibrating circuit 308, wherein detecting circuit 304 is coupled to charge pump 302 at node c. The charge pump 302 includes a current source I_(UP), a current source I_(DN), a switch PUP, and a switch PDN. The current source I_(UP) and I_(DN) are respectively coupled to the switch PUP and PDN at node a and node b, and the switch PUP is coupled to the switch PDN at node c.

[0020] As shown in FIG. 3, the detecting circuit 304 includes an integrator, composed of an operational amplifier OPA and a capacitor C1, and a switch SW in parallel connection with the operational amplifier OPA and the capacitor C1. The detecting circuit 304 outputs a detecting signal Vout according to the current i_(o) outputted from the charge pump 302 through node c.

[0021] The current adjusting circuit 306 is coupled to the operational amplifier OPA and switch SW, and outputs calibrating signals d_(up) and d_(dn) according to the detecting signal Vout from the operational amplifier OPA. The current adjusting circuit 306 also outputs a control signal RSCTL for controlling the switch SW so as to control the detecting circuit 304.

[0022] The calibrating circuit 308 has a calibration current source I_(UPO) and a calibration current source I_(DNO), wherein the calibration current source I_(UPO) and I_(DNO) are respectively coupled to the charge pump 302 at node a and node b, and are respectively coupled to the current adjusting circuit 306. The calibrating circuit 308 outputs a calibrating current i_(upo) and a calibrating current i_(dno) into the charge pump 302 according to the calibrating signal d_(up) and the calibrating signal d_(dn), respectively.

[0023]FIG. 4 illustrates the flow chart of the calibration method for the charge pump according to the method of the present invention. First, the capacitor C1 and the operational amplifier OPA are reset in step 402 by opening and then closing the switch SW. The voltage across the capacitor C1 and the output voltage of the operational amplifier OPA are reset to zero when the switched SW is closed. After that, the switch SW is opened again.

[0024] Next, in step 404, the switch PUP and switch PDN are closed. At the same time, current source I_(UP) and current source I_(DN) respectively output current i_(up) and current i_(dn), and the charge pump 302 outputs the current i_(o) through node c, wherein i_(tup) and i_(tdn) indicated in FIG. 3 are identical to i_(up) and i_(dn) respectively. Ideally, the current i_(up) produced by the current source I_(UP) is equal to the current i_(dn) outputted from the current source I_(DN), and the current i_(up) passes through the switch PUP, power PDN, and flows out through current source I_(DN). Thus, the current i_(o) is zero. However, the current i_(o) is not zero in reality because every circuit device has inevitable variations in characteristic which may cause the currents i_(up) and i_(dn) to be different. As the current i_(up) is larger than the current i_(dn), the current io flows out of the charge pump 302; as the current i_(up) is smaller than the current i_(dn), the current io flows into the charge pump 302, wherein the current io is the difference between the current i_(up) and the current i_(dn).

[0025] Afterwards, in step 406, the detecting signal Vout is outputted from the operational amplifier OPA. The current i_(o) from the charge pump 302 produces an input voltage V_(I) at the negative input terminal of the operational amplifier OPA. A reference voltage V_(R), being a constant value, is applied to the positive input terminal of the operational amplifier OPA. The operational amplifier OPA outputs a detecting signal Vout according to the reference voltage V_(R) and the input voltage V_(I), wherein the detecting signal Vout is proportional to the difference between the reference voltage V_(R) and the input voltage V_(I).

[0026] The capacitor C1 is charged as the current i_(o) is inputted into the detecting circuit 304. Accordingly, the voltage V_(I) inputted into the negative input terminal of the operational amplifier OPA increases with time and the detecting signal Vout decreases with time. As the current io becomes larger, the capacitor C1 is charged at higher speed and the voltage V_(I) increases at higher speed as well. Therefore, the detecting signal Vout decreases faster. Conversely, the detecting signal Vout increases with time if the current i_(o) is inputted into the charge pump 302, and the detecting signal Vout increases faster if the current io becomes larger.

[0027] Then, in step 408, a slew rate of the detecting current Vout is measured and stored by the current adjusting circuit 306. The slew rate is defined as the change of the signal value per unit time. As the signal increases with time, the polarity of the slew rate is positive; as the signal decreases with time, the polarity of the slew rate is negative. In addition, the polarity of slew rate of the detecting signal Vout is negative when the current i_(o) is outputted from the charge pump 302; the polarity of slew rate of the detecting signal Vout is negative when the current i_(o) is outputted from the charge pump 302. The larger the value of the slew rate, the larger of the current i_(o). Therefore, the offset between the current i_(up) and current i_(dn) can be determined according to the slew rate of the detecting signal Vout.

[0028] The current adjusting circuit 306 can include, for example, an analog-to-digital converter (ADC) so as to measure and store the slew rate of the detecting current Vout in digital form. In another example, a comparator can be employed to make the positive and negative polarity of the slew rate respectively being represented by a high level signal VH and a low level signal VL. The former will be described in the following.

[0029] In step 410, whether it is the first time to measure the detecting signal Vout or not will be determined. If so, the step 414 is processed, wherein the current adjusting circuit 306 outputs the calibrating signal d_(up) or the calibrating signal d_(dn) according to the polarity of the slew rate for the detecting signal Vout. If the slew rate is positive, the current adjusting circuit 306 outputs the calibrating signal d_(up) to the calibration current source I_(UPO), as indicated in step 416, wherein the current io outputted from the detecting circuit 304 is inputted into the charge pump 302 and the calibration current source I_(UPO) outputs the calibrating current i_(upo) according to the calibrating signal d_(up). If the slew rate is negative, the current adjusting circuit 306 outputs the calibrating signal d_(dn) to the calibration current source I_(DNO), as in step 418, wherein the current io outputted from the charge pump 302 is inputted into the detecting circuit 304 and the calibration current source I_(DNO) outputs the calibrating current i_(dno) according to the calibrating signal d_(dn).

[0030] Please note that the calibrating currents i_(upo) and i_(dno) are much smaller than the currents i_(up) and i_(dn). In addition, the direction and the magnitude of the current io not only relate to the currents i_(up) and i_(dn), but to the calibrating currents i_(upo) and i_(dno). In the charge pump 302, both the current i_(up) and the calibrating current i_(upo) flow through the switch PUP. Both the current i_(dn) and the calibrating current i_(dno) flow through the switch PDN, too. Therefore, the current difference between the current i_(up) and the current i_(dn) becomes smaller owing to the adjustment of the calibrating current i_(upo) and i_(dno).

[0031] After the first calibration cycle, the method is returned to step 402 to reset the capacitor C1 and the operational amplifier OPA and then steps 404 to 408 are repeated. Again, the detecting circuit 304 outputs detecting signal Vout according to the current io from the charge pump 302, and the current adjusting circuit 306 measures and store the slew rate of the detecting signal Vout, wherein the magnitude of the slew rate for the detecting signal Vout is smaller than that during the first calibration cycle because of the current io becoming smaller.

[0032] Step 414 will be processed if the polarity of the slew rate for the detecting signal Vout is not changed during step 412. Step 416 or step 418 is continued, as described above. Not until the polarity of the slew rate for the detecting signal Vout is changed, will the calibration cycle be processed repeatedly. In each calibration cycle, the calibrating currents i_(upo) and i_(dno) have their variations in magnitude much smaller than that of the currents i_(up) and i_(dn), and the current io becomes much smaller regardless of the direction of the current io.

[0033] Step 420 will be processed if the polarity of the slew rate for the detecting signal Vout is changed. The corresponding calibrating currents i_(upo) and i_(dno) are determined as the final outputs of the calibration current sources I_(UPO) and current source I_(DNO), respectively. Ideally, the calibration process is finished as the current io is zero and the slew rate of the detecting signal Vout is shifted from non-zero to zero. However, the calibration process is also possibly finished by the polarity shifting between positive and negative, and accordingly the direction of the current io and the polarity of the detecting signal Vout are reversed.

[0034] Therefore, the calibrating current i_(upo) and i_(dno) are determined by the following two methods during the step 420. For the first method, the respective final outputs of the calibration current source I_(UPO) and calibration current source I_(DNO) are determined either by the calibrating current i_(upo) and i_(dno) during the calibration cycle of polarity changing or by those prior to the calibration cycle of polarity changing. For the second method, the respective final outputs of the calibration current source I_(UPO) and I_(DNO) are the calibrating current i_(upo) and i_(dno) having the smaller slew rate of the detecting signal Vout in the last two calibration cycles. The first method uses simpler circuit but the calibrating current i_(upo) and i_(dno) thereof are not always the optimized ones. The second method can provide the optimized calibrating current i_(upo) and calibrating current i_(dno), but uses more complex circuit.

[0035] Alternatively, in the example of the comparator, the polarity transition of the slew rate will trigger the toggle of the signal outputted from the comparator. In step 412, when the polarity of the slew rate for the detecting signal is changed, the comparator changes its output from the high level signal VH to the low level signal VL or from the low level signal VL to the high level signal VH. Then, the continuing process of determination for the optimized calibrating current i_(upo) and i_(dno) is implemented in step 420 as before.

[0036] In the signal calibration apparatus of the present invention, two calibration current sources are provided to two current sources of the charge pump so as to minimizing the current produced by the charge pump. Thus, the performance of PLL is improved because the two calibration current sources compensate the characteristic difference of the two current sources.

[0037] While the invention has been described by way of example and in terms of the preferred embodiment, it is to be understood that the invention is not limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures. 

What is claimed is:
 1. A calibration apparatus for minimizing a main current from a charge pump, said charge pump including a first switch, a second switch, a first current source, and a second current source, wherein said first current source is coupled to said first switch at a first node, said second current source is coupled to said second switch at a second node, and said first switch is coupled to said second switch at a third node, said charge pump outputs said main current through said third node when said first switch and said second switch are enabled, the direction and magnitude of said main current are determined by a first current and a second current, wherein said first current is outputted from said first current source and passes through said first switch, and second current is outputted from said second current source and passes through said second switch, said calibration apparatus comprising: a detecting circuit coupled to said charge pump at said third node for outputting a detecting signal according to said direction and magnitude of said main current; a current adjusting circuit coupled to said detecting circuit for outputting a calibrating signal according to the polarity and magnitude of the slew rate for said detection signal; and a calibrating circuit coupled to said charge pump and said current adjusting circuit for adjusting said first current and said second current according to said calibrating signal by outputting a first calibrating current and a second calibrating current to said charge pump.
 2. A calibration apparatus according to claim 1, wherein said detecting circuit is capable of performing integration.
 3. A calibration apparatus according to claim 1, wherein said current adjusting circuit comprises an ADC (analog-to-digital converter) for storing a digital signal according to the polarity and magnitude of the slew rate for said detecting current, said current adjusting circuit outputs said calibrating signal according to said digital signal.
 4. A calibration apparatus according to claim 1, wherein said current adjusting circuit comprises a comparator for storing a comparison signal according to the polarity of the slew rate for said detecting current, said current adjusting circuit outputs said calibrating signal according to said comparison signal.
 5. A calibration apparatus according to claim 4, wherein said comparison signal is a high level signal if said polarity of said slew rate is positive; and said comparison signal is a low level signal if said polarity of said slew rate is negative,.
 6. A calibration apparatus according to claim 4, wherein said comparison signal is a low level signal if said polarity of said slew rate is positive, and said comparison signal is a high level signal if said polarity of said slew rate is negative.
 7. A calibration apparatus according to claim 1, wherein said calibrating circuit comprises a first calibration current source and a second calibration current source, said first calibration current source is coupled to said charge pump at said first node and said second calibration current source is coupled to said charge pump at said second node.
 8. A calibration apparatus according to claim 7, wherein said calibrating signal comprises a first calibrating signal and a second calibrating signal, said first calibrating signal is used for adjusting said first calibrating current outputted from said first calibration current source, said second calibrating signal is used for adjusting said second calibrating current outputted from said second calibration current source. 